﻿@Imports JertiFramework
@ModelType IEnumerable(Of SchoolClick.Database.V_ALUMNOS_INSCRITOS_BY_SECCION)
@Code
    Dim grid = New JFGridReadOnly(Of V_ALUMNOS_INSCRITOS_BY_SECCION)("TOTAL DE ALUMNOS INSCRITOS POR SECCIÓN"),
        viewCont As JFViewDataContainer(Of V_ALUMNOS_INSCRITOS_BY_SECCION)
        
    For Each g In Model
        viewCont = New JFViewDataContainer(Of V_ALUMNOS_INSCRITOS_BY_SECCION)(New ViewDataDictionary(Of V_ALUMNOS_INSCRITOS_BY_SECCION)(New ViewDataDictionary(Of V_ALUMNOS_INSCRITOS_BY_SECCION)(g)))
        grid.AddFieldsFor(New HtmlHelper(Of V_ALUMNOS_INSCRITOS_BY_SECCION)(Me.ViewContext, viewCont)) _
            .SetTitulo(g.TITULO) _
            .SetValue(Function(s) s.ALUMNOS_INSCRITOS) _
            .SetOptions(New JFOptionsFieldsReadOnly().SetHTMLAttributesDisplay(New With {.style = "color: #6D6D6D;"}) _
                                                     .SetHTMLAttributesValue(New With {.style = "color: #023D77; font-weight: bold; text-align: center; padding: 2px 12px;"}))
    Next
    grid.SetWidth(500)
End Code

@MvcHtmlString.Create(grid.ToString)